
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
    <form action="StudentServlet" method="post">
        <input type="hidden" name="sId" value="${stu.sId}"> <br>
        <input type="text" name="sName" value="${stu.sName}"> <br>
        <input type="date" name="birth" value="${stu.birth}"> <br>

        <label>
            <input type="radio" name="gender" value="男" ${stu.gender == '男' ? 'checked' : ''}> 男
        </label>
        <label>
            <input type="radio" name="gender" value="女" ${stu.gender == '女' ? 'checked' : ''}> 女
        </label>
        <br>
        <input type="submit" value="提交">
    </form>
</body>
</html>